<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
	<%@ page isELIgnored="false" %>
<!DOCTYPE html>
<%
	String path = request.getContextPath();
%>
<html>
<head>

<link rel="stylesheet" type="text/css"
	href="<%=path%>/script/easyUI-1.4/themes/bootstrap/easyui.css">
<link rel="stylesheet" type="text/css"
	href="<%=path%>/script/easyUI-1.4/themes/icon.css">
<script type="text/javascript"
	src="<%=path%>/script/easyUI-1.4/jquery-3.2.1.min.js"></script>
<script type="text/javascript"
	src="<%=path%>/script/easyUI-1.4/jquery.easyui.min.js"></script>
<script type="text/javascript"
	src="<%=path%>/script/easyUI-1.4/locale/easyui-lang-zh_CN.js"></script>
</head>
<script type="text/javascript">
if(top.location!=self.location)top.location=self.location;
function showindex(){
	location.href="<%=path%>/userAction/login";
}

$(function(){
//注销
$("#zhuxiaoBtn").bind("click",function(){
	
	   $.ajax({
           //几个参数需要注意一下
               type: "POST",//方法类型
               dataType: "json",//预期服务器返回的数据类型
               url: "<%=path%>/userAction/zhuxiao",
               success: function (result) {
               	
               	$.messager.confirm('提示',result.msg,function(r){    
               	   location.href="<%=path%>/userAction/login";
               	});  
               	
               },
               error : function() {
                   alert("系统异常！");
               }
           });
	
});

//跳转到新闻中心
$("#newsBtn").bind("click",function(){
	
	location.href="<%=path%>/userAction/newsView";
	
});
});
</script>



<body class="easyui-layout" >   
    <div data-options="region:'north'" style="height:100px;">
    	<div style="margin-left: 100px;margin-top: 20px">
    		<img alt="hello" src="<%=path%>/img/per_lib_logo.jpg" width="50px" height="50px" align="top">
    		<font size="6px" onclick="showindex();">个人图书馆</font>
    		<hr style="width:2px;height:30px;margin-top: -40px;margin-left:240px"></hr>
    	</div>
    	<div style="margin-top: -48px;margin-left: 380px;">
    		<font size="6px" >千万人在用的知识管理和分享平台</font>
    	</div>
    	<div style="margin-top: -10px;margin-left: 1150px;">
    	<a id="newsBtn" class="easyui-linkbutton"
					data-options="iconCls:'icon-news'" style="width: 80px; height: 32px">消息中心</a>
    	<a id="zhuxiaoBtn" class="easyui-linkbutton"
					data-options="iconCls:'icon-back'" style="width: 80px; height: 32px">注销</a>
    	</div>
    </div>   
     
   
    </div>   
    <div data-options="region:'center'" >
    		<div id="tabs" class="easyui-tabs" fit="true" border="false" data-options="tabWidth:100,tabHeight:30">
				<div title="馆藏" style="padding-top:20px;padding-left:20px;padding-right:20px; overflow: hidden; color: red;">
					<iframe scrolling="auto" application="yes" frameborder="0" style="width:100%;height:100%;" src="<%=path%>/guancangAction/guancangView"></iframe>
				</div>
				<div title="通讯录" style="padding-top:20px;padding-left:20px;padding-right:20px; overflow: hidden; color: red;">
					<iframe scrolling="auto" application="yes" frameborder="0" style="width:100%;height:100%;" src="<%=path%>/tongxunAction/tongxunView"></iframe>
				</div>
				<div title="用户中心" style="padding-top:20px;padding-left:20px;padding-right:20px; overflow: hidden; color: red;">
					<iframe scrolling="auto" application="yes" frameborder="0" style="width:100%;height:100%;" src="<%=path%>/userAction/informationView"></iframe>
				</div>
		</div>
    </div>   
    
</body>  

</html>